package com.ruoyi.project.check.service.impl;

import com.ruoyi.project.check.domain.HisCheckList;
import com.ruoyi.project.check.mapper.HisCheckListMapper;
import com.ruoyi.project.check.service.HisCheckListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HisCheckListServiceImpl implements HisCheckListService {
    @Autowired
    private HisCheckListMapper hisCheckListMapper;

    @Override
    public List<HisCheckList> findId(Integer rrcid) {
        return hisCheckListMapper.selectID(rrcid);
    }

    @Override
    public List<HisCheckList> findStatus(Integer status) {

        return hisCheckListMapper.selectStatus(status);
    }
    @Override
    public List<HisCheckList> findName(String string) {
        return hisCheckListMapper.selectName(string);
    }

    @Override
    public int alterStatus(Integer status, Integer rrcid) {
        return hisCheckListMapper.updateStatus(status, rrcid);
    }


    @Override
    public HisCheckList findResultPicture(Integer rccid) {
        return hisCheckListMapper.selectResultPicture(rccid);
    }
}
